package rmhc.api.vk
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Loader;
	import flash.display.LoaderInfo;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.system.LoaderContext;
	import flash.system.Security;
	import flash.utils.Dictionary;
	import rmhc.gui.customTrace;
	import rmhc.gui.SupplyFunctions;
	
	import rmhc.api.dataflow.UserInfo;
	import rmhc.api.tasks.IGetFriends;
	
	public class GetUploadUrlTask extends VkApiTask
	{
		private var url:String;
		public function GetUploadUrlTask(wrapper:VkApi)
		{
			super(wrapper, "photos.getProfileUploadServer" , {} );
		}
		
		override public function parseData(result:Object):void
		{
			//customTrace("GetFriends.parseData result" + SupplyFunctions.objectToString(result));
			url = result.upload_url;
			onComplete();
		}
		
		public function getURL():String
		{
			return url;
		}
	}
}